package com.cqc.advancetools;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * android:drawableLeft="@android:drawable/star_big_on"
 */
public class MainActivity extends AppCompatActivity {

    @BindView(R.id.tv_phone_address)
    TextView tvPhoneAddress;
    @BindView(R.id.tv_sms)
    TextView tvSms;
    @BindView(R.id.tv_lock)
    TextView tvLock;

    private Context context = this;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //        requestWindowFeature(Window.FEATURE_NO_TITLE);//AppCompatActivity时无效
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }
    }

    @OnClick({R.id.tv_phone_address, R.id.tv_sms, R.id.tv_lock})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv_phone_address:
                break;
            case R.id.tv_sms:
                break;
            case R.id.tv_lock:
                startActivity(new Intent(context, LockActivity.class));
                break;
        }
    }
}
